﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WebSocketClientApp
{
    public partial class PopupForm : Form
    {
        public PopupForm(string my_show_text, int my_interval)
        {
            InitializeComponent();
            this.ControlBox = false;
            this.label1.Text = my_show_text;
            timer1.Interval = my_interval; // 3秒
            timer1.Tick += timer1_Tick;
        }

        private void timer1_Tick(object sender, EventArgs e)
        {
            this.Close();
        }

        private void PopupForm_Load(object sender, EventArgs e)
        {
            base.OnShown(e);
            timer1.Start();
        }
    }
}
